#set( $page_title = "意见反馈" )
<div>
    <div style="font-size: 24px; color: #333333;">意见反馈</div>
    <div style="border-top: 1px solid #e7e7e7; margin-top: 20px;"></div>
    <div style="margin-top: 20px;">
         <form action="$!{velocityCommonUtil.getAbsoluteURL()}/suggest/list.html" method="get">
             <span style="color: #747474;">账号：</span><input type="text" name="tel"  value="$!{query.tel}"   style="width: 280px;">
             <span style="color: #747474;">状态：</span>
                    <select name="status">
                        <option value="">所有</option>
                        #foreach($eitem in $!suggestStatus.values())
                           <option value="$!eitem.code" #if($!eitem.code == $!query.status)selected="true"#end>$!eitem.description</option>
                        #end
                    </select>
                    <input type="submit" class="btn   btn-danger"  value="搜索" style="height: 30px; width: 60px;" />
                </form>
    </div>
    <div style="margin-top: 20px;">
        <table class="table" cellPadding="0" cellSpacing="0" style="width: 100%;">
            <thead style="font-size: 14px;">
                <tr>
                    <th style="width: 16%;">反馈内容</th>
                    <th style="width: 5%;">账号</th>
                    <th style="width: 6%;">昵称</th>
                    <th style="width: 5%;">客户端</th>
                    <th style="width: 7%;">客户端型号</th>
                    <th style="width: 4%;">状态</th>
                    <th style="width: 3%;">操作</th>
                </tr>
            </thead>
          <tbody  style="font-size: 12px;">
               #foreach ($item in $!dataList)
                <tr>
                    <td>
                        <div style="font-size: 21px;color: red">$!item.content</div>
                        <div align="right">
                            <span style="color:gray">反馈时间：</span><span>$!date.format('yyyy-MM-dd HH:mm',$!item.createdAt)</span>
                        </div>
                        #if($!item.status > 0)
                        <div align="right">
                            <span style="color:gray">最后回复时间：</span><span>$!date.format('yyyy-MM-dd HH:mm',$!item.replyAt)</span>
                        </div>
                        #end
                        #if($!item.status == 2)
                        <div align="right">
                            <span style="color:gray">解决时间：</span><span>$!date.format('yyyy-MM-dd HH:mm',$!item.solveAt)</span>
                        </div>
                        #end
                        #if($!item.status > 0)
                        <div style="padding-top: 10px;padding-bottom: 2px;font-weight: bold">已回复内容：</div>
                        #end
                        #foreach($replyItem in $!item.replyList)
                           <div>
                               <span style="font-size: 21px;color: green">$!replyItem.content</span>
                           </div>
                           <div align="right">
                               <span style="color:gray">回复时间：</span>$!date.format('yyyy-MM-dd HH:mm',$replyItem.createdAt)
                           </div>
                        #end
                    </td>
                    <td >$!item.tel</td>
                    <td >$!item.userName</td>
                    <td >$!item.client</td>
                    <td >$!item.clientProperties</td>
                    <td >$!item.statusText</td>
                    <td>
                        #if(${item.status} != 2)
                        <a href="javascript:void(0)" id="reply" data-id="$!item.id">回复</a><br/>
                        <a href="javascript:void(0)" id="solve" data-id="$!item.id" >解决</a>
                        #end
                    </td>
                </tr>
                #end
            </tbody>
        </table>
        
         <div  align="right">
                $velocityCommonUtil.pageInfo($!pageInfo)
         </div>
         
    </div>
</div>
<script type="text/javascript" src="$!{velocityCommonUtil.getAbsoluteURL()}/_resources/js/module/suggest.js"></script>





